<?php $this->_extends('_layouts/main_layout'); ?>
<?php $this->_block('title'); ?>
	Advertiser Data
<?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>

<div id="content" class="box">
	<h1>Advertiser Data</h1>
		<?php if (isset($infos)) 
				{
					foreach ($infos as $info)
					{
		?>
				<p class="msg info"><?php echo $info;?></p>
		<?php		}
				}
		?>
		<fieldset>
			<legend>Advertiser Data</legend>
		<?php if (isset($errors)) 
				{
					foreach ($errors as $error)
					{
		?>
				<p class="msg error"><?php echo $error;?></p>
		<?php		}
				}
		?>
			<form method="post" action="<?php echo url('advertiserdata/add');?>">
				<dl>
					<dt><label>Date:</label></dt>
					<dd>
						<input type="text" name="date" id="date" />
					</dd>
				</dl>
				<dl>
					<dt><label>Advertiser:</label></dt>
					<dd>
						<?php
							 echo Util::buildDropDownList(
							 	array('id'=>'advertiser', 'name'=>'advertiser'),
							 	$advertisers,
							 	isset($advertiser) ? $advertiser: false,
							 	array('k'=>'', 'l'=>'--All--')
							 );
						?>
					</dd>
				</dl>
				<dl>
					<dt><label>Site:</label></dt>
					<dd>
						<?php
							 echo Util::buildDropDownList(
							 	array('id'=>'site', 'name'=>'site'),
							 	$sites,
							 	isset($site) ? $site: false,
							 	array('k'=>'', 'l'=>'--All--')
							 );
						?>
					</dd>
				</dl>
				<dl>
					<dt><label>Placement:</label></dt>
					<dd>
						<select name="placement">
							<option value="Short Reg Coreg">Short Reg Coreg</option>
							<option value="Full Reg Coreg">Full Reg Coreg</option>
							<option value="Profile Update Coreg">Profile Update Coreg</option>
							<option value="Confirmation Coreg">Confirmation Coreg</option>
							<option value="Offer Wall">Offer Wall</option>
						</select>
					</dd>
				</dl>
				<dl>
					<dt><label>Click:</label></dt>
					<dd><input type="text" name="click"/></dd>
				</dl>
				<dl>
					<dt><label>Revenue:</label></dt>
					<dd><input type="text" name="revenue"/></dd>
				</dl>
				<input type="submit" value="Add Advertiser Data" /> 
			</form>
		
		</fieldset>
		
</div>
<script type="text/javascript">
	$(function(){
		$('#date').datepicker();
	});
</script>
<?php $this->_endblock(); ?>